Skip to content

Fix pyarrow import#1316

Merged
robsdedude merged 1 commit into
neo4j:6.xfrom
robsdedude:fix/pyarrow-import
Jun 8, 2026
Merged

Fix pyarrow import#1316
robsdedude merged 1 commit into
neo4j:6.xfrom
robsdedude:fix/pyarrow-import

Conversation

@robsdedude

@robsdedude robsdedude commented Jun 8, 2026

Copy link
Copy Markdown
Member

neo4j.vector.Vector uses pyarrow.compute.count but the driver never loads the module pyarrow.compute. We've not seen issues in tests because we either have all optional dependencies or none installed. And the current versions of pandas (another optional dependency), when loaded, in turn loads pyarrow.compute. However, this is not guaranteed to remain this way and won't work for users only that only have pyarrow (but not pandas) installed.

Further does this PR silence pyarrow's type annotations for now as they're not quite up to snuff yet.

Closes: DRIVERS-443

`neo4j.vector.Vector` uses `pyarrow.compute.count` but the driver never loads
the module `pyarrow.compute`. We've not seen issues in tests because we either
have all optional dependencies or none installed. And the current versions of
`pandas` (another optional dependency), when loaded, in turn loads
`pyarrow.compute`. However, this is not guaranteed to remain this way and won't
work for users only that only have pyarrow (but not pandas) installed.

Further does this PR silence pyarrow's type annotations for now as they're not
quite up to snuff yet.
@robsdedude robsdedude force-pushed the fix/pyarrow-import branch from 173d168 to ebc6bf8 Compare June 8, 2026 08:55
@robsdedude robsdedude marked this pull request as ready for review June 8, 2026 10:42

@StephenCathcart StephenCathcart left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@robsdedude robsdedude merged commit 13fe8a2 into neo4j:6.x Jun 8, 2026
29 checks passed
@robsdedude robsdedude deleted the fix/pyarrow-import branch June 8, 2026 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants